package com.panda.business.mapper;

import com.panda.business.domain.req.HistoryMessageVo;
import com.panda.business.domain.WeChatMessageInfo;
import com.panda.framework.domain.base.DBPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WeChatMessageMapper {
    List<WeChatMessageInfo> queryWeChatMessageInfo(@Param("page") DBPage page, @Param("cid") Integer cid, @Param("wechatid") String wechatid, @Param("friendid") String friendid);

	Integer queryWeChatMessageInfoCount(@Param("page") DBPage page, @Param("cid") Integer cid, @Param("wechatid") String wechatid, @Param("friendid") String friendid);

    Integer queryHistormMessageCount(HistoryMessageVo info);

	List<WeChatMessageInfo> queryHistormMessage(@Param("page") DBPage page, @Param("info") HistoryMessageVo info);

	WeChatMessageInfo queryWeChatMessageInfoByMsgServerId(@Param("wechatid") String wechatid, @Param("friendid") String friendid, @Param("msgSvrId") String msgSvrId);
	
	void update(WeChatMessageInfo info);
	
	void insert(WeChatMessageInfo info);

	void delete(WeChatMessageInfo info);
}
